<%
link_url = url_for(url)
confirm = "是否删除#{name.blank? ? '' : name}？"
%>
<%= link_to image_tag('trash_16.gif', :size=>"12x12"), link_url, :confirm => confirm, :method => :delete, :title=>"删除" %>
<%= link_to '删除', link_url, :confirm => confirm, :method => :delete, :title=>"删除" %>


